package org.luxor.commons.zookeeper.constant;

/**
 * Watcher监听者类型
 *
 * @author Mr.Yan  @date: 2020/12/23
 */
public enum Watcher {

    /**
     * 监听节点对应增、删、改操作
     *
     * @see org.apache.curator.framework.recipes.cache.NodeCacheListener
     */
    NodeCache,

    /**
     * 监听节点下一级子节点的增、删、改操作
     *
     * @see org.apache.curator.framework.recipes.cache.PathChildrenCacheListener
     * @see org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent
     */
    PathChildrenCache,

    /**
     * 监听指定节点下，所有子节点的增、删、改操作
     *
     * @see org.apache.curator.framework.recipes.cache.TreeCacheListener
     * @see org.apache.curator.framework.recipes.cache.TreeCacheEvent
     */
    TreeCache

}
